package jsonutils.testbean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/7/31 12:34
 * @since JDK 1.8
 */
public class User {

    private Long id;
    private String username;
    private String password;
    private String mobile;
    private String country;
    private String city;

    @JSONField(format = "yyyy-MM-dd")
    private Date date;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public User(Long id, String username, String password, String mobile, String country, String city, Date date) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.mobile = mobile;
        this.country = country;
        this.city = city;
        this.date = date;
    }

    public User() {
    }
}
